package org.zw.android.framework.db.core;

/**
 * parameter utils
 * 
 * @author zhouwei
 *
 */
public final class SQLiteParamUtils {

	public static String[] toParamemter(Object ...objs) {
		
		if(objs == null){
			return new String[]{} ;
		}
		
		int length 		= objs.length ;
		String[] array 	= new String[length];
		
		for(int index = 0 ; index < length ; index++){
			
			Object val = objs[index] ;
			
			if(val != null){
				array[index] = String.valueOf(val);
			} else {
				array[index] = "null";
			}
		}
		
		return array ;
	}
}
